<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

//include('admin.php');


Route::get('think', function () {
    return 'hello,ThinkPHP6!';
});

Route::get('hello/:name', 'index/hello');
/*Route::resource('user', 'User');
Route::post('user','User/save');regist
Route::post('restore/:id','user/restore');*/

Route::get('admin/signin', 'Admin/signin');

Route::get('admin/forgetpwd', 'Admin/forgetpwd');

/*用户密码重置*/
Route::rule('admin/registpwd', 'Admin/registpwd', 'POST');
//Route::post('admin/regist', 'Admin/insert');
Route::get('admin/user','Admin/user');
Route::get('admin/teacher','Admin/teacher');
Route::rule('admin/regist', 'Admin/insert', 'POST');
Route::rule('admin/regist', 'Admin/insert', 'GET');
//--Route::get('admin', 'Admin/index');
Route::rule('admin/:login', 'Admin/index', 'GET');
Route::get('admin/login','Admin/index');
Route::post('admin/login','Admin/login2');

//--Route::post('admin', 'Admin/login');
// Route::post('admin/login', 'Admin/login');
// Route::rule('admin/:login', 'Admin/index', 'POST');
//Route::get('admin','Admin/login');

//Route::post('admin/login','Admin/login');